
*********************************************************************
*	On What Moves (Spending) Mood?                                  *
*   The Nature and Origins of Parallel Public Preferences           *
*                                                                   *
* 	Steven M. Van Hauwaert, ESPOL-LAB & Radboud University          *
*	Christopher Wlezien, University of Texas at Austin              *
* 	Ryan E. Carlin, Georgia State University                        *
*********************************************************************

use "/[pathway]/what moves mood panelled 20250507.dta"

drop if pref_raw == .
xtset domainid time_raw


****************************************************

// SUPPLEMENTARY MATERIALS //

****************************************************


****************************************************
// A. TIME-SERIES DIAGNOSTICS //
****************************************************

// For Table A1.b//

xtreg d.pref_raw l.pref_raw, fe
xtreg d.pref_raw l.pref_raw l.d.pref_raw time_raw, fe


// For Table A3//


dfuller pref_raw if domainid==3 & year < 2020, regr 
dfuller pref_raw if domainid==1 & year < 2020, regr 
dfuller pref_raw if domainid==4 & year < 2020, regr 
dfuller pref_raw if domainid==5 & year < 2020, regr


// For Table A4b//

//First panel//

kpss pref_raw if domainid==3 & year < 2020, auto
kpss pref_raw if domainid==1 & year < 2020, auto
kpss pref_raw if domainid==4 & year < 2020, auto
kpss pref_raw if domainid==5 & year < 2020, auto


//Second panel//

kpss pref_raw if domainid==3 & year < 2020, auto notrend
kpss pref_raw if domainid==1 & year < 2020, auto notrend
kpss pref_raw if domainid==4 & year < 2020, auto notrend
kpss pref_raw if domainid==5 & year < 2020, auto notrend


****************************************************
// B. PREFERENCE MODELS USING RAW DATA //
****************************************************


// TABLE B.1

xtreg pref_raw l.pref_raw treal_APP_domain treal_APP_total gdp_trill president if year < 2020, fe


// TABLE B.2

regress pref_raw l.pref_raw  treal_APP_total gdp_trill president if domainid == 1 & year < 2020
durbina2

regress pref_raw l.pref_raw   treal_APP_total gdp_trill president if domainid == 3 & year < 2020
durbina2

regress pref_raw l.pref_raw   treal_APP_total gdp_trill president if domainid == 4 & year < 2020
durbina2

regress pref_raw l.pref_raw treal_APP_total gdp_trill president if domainid == 5 & year < 2020
durbina2

// TABLE B.3

xtreg pref_raw l.pref_raw treal_APP_total gdp_trill president if year < 2020, fe

xtreg pref_raw treal_APP_total gdp_trill president if year < 2020, fe
